﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x0200000F RID: 15
	[DebuggerNonUserCode]
	public sealed class StartOSBatchTask : GeneratedMessage<StartOSBatchTask, StartOSBatchTask.Builder>
	{
		// Token: 0x0600013C RID: 316 RVA: 0x000041C3 File Offset: 0x000023C3
		private StartOSBatchTask()
		{
		}

		// Token: 0x17000087 RID: 135
		// (get) Token: 0x0600013D RID: 317 RVA: 0x000041DB File Offset: 0x000023DB
		public static StartOSBatchTask DefaultInstance
		{
			get
			{
				return StartOSBatchTask.defaultInstance;
			}
		}

		// Token: 0x17000088 RID: 136
		// (get) Token: 0x0600013E RID: 318 RVA: 0x000041E2 File Offset: 0x000023E2
		public override StartOSBatchTask DefaultInstanceForType
		{
			get
			{
				return StartOSBatchTask.DefaultInstance;
			}
		}

		// Token: 0x17000089 RID: 137
		// (get) Token: 0x0600013F RID: 319 RVA: 0x00002579 File Offset: 0x00000779
		protected override StartOSBatchTask ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x1700008A RID: 138
		// (get) Token: 0x06000140 RID: 320 RVA: 0x000041E9 File Offset: 0x000023E9
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StartOSBatchTask__Descriptor;
			}
		}

		// Token: 0x1700008B RID: 139
		// (get) Token: 0x06000141 RID: 321 RVA: 0x000041F0 File Offset: 0x000023F0
		protected override FieldAccessorTable<StartOSBatchTask, StartOSBatchTask.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StartOSBatchTask__FieldAccessorTable;
			}
		}

		// Token: 0x1700008C RID: 140
		// (get) Token: 0x06000142 RID: 322 RVA: 0x000041F7 File Offset: 0x000023F7
		public bool HasMessage
		{
			get
			{
				return this.hasMessage;
			}
		}

		// Token: 0x1700008D RID: 141
		// (get) Token: 0x06000143 RID: 323 RVA: 0x000041FF File Offset: 0x000023FF
		public OSMessage Message
		{
			get
			{
				return this.message_ ?? OSMessage.DefaultInstance;
			}
		}

		// Token: 0x1700008E RID: 142
		// (get) Token: 0x06000144 RID: 324 RVA: 0x00004210 File Offset: 0x00002410
		public bool HasExpire
		{
			get
			{
				return this.hasExpire;
			}
		}

		// Token: 0x1700008F RID: 143
		// (get) Token: 0x06000145 RID: 325 RVA: 0x00004218 File Offset: 0x00002418
		public long Expire
		{
			get
			{
				return this.expire_;
			}
		}

		// Token: 0x17000090 RID: 144
		// (get) Token: 0x06000146 RID: 326 RVA: 0x00004220 File Offset: 0x00002420
		public override bool IsInitialized
		{
			get
			{
				return this.hasMessage && this.hasExpire && this.Message.IsInitialized;
			}
		}

		// Token: 0x06000147 RID: 327 RVA: 0x00004248 File Offset: 0x00002448
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] startOSBatchTaskFieldNames = StartOSBatchTask._startOSBatchTaskFieldNames;
			if (this.hasMessage)
			{
				output.WriteMessage(1, startOSBatchTaskFieldNames[1], this.Message);
			}
			if (this.hasExpire)
			{
				output.WriteInt64(2, startOSBatchTaskFieldNames[0], this.Expire);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x17000091 RID: 145
		// (get) Token: 0x06000148 RID: 328 RVA: 0x000042A0 File Offset: 0x000024A0
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x06000149 RID: 329 RVA: 0x000042C0 File Offset: 0x000024C0
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasMessage)
			{
				num += CodedOutputStream.ComputeMessageSize(1, this.Message);
			}
			if (this.hasExpire)
			{
				num += CodedOutputStream.ComputeInt64Size(2, this.Expire);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x0600014A RID: 330 RVA: 0x00004320 File Offset: 0x00002520
		public static StartOSBatchTask ParseFrom(ByteString data)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x0600014B RID: 331 RVA: 0x00004332 File Offset: 0x00002532
		public static StartOSBatchTask ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600014C RID: 332 RVA: 0x00004345 File Offset: 0x00002545
		public static StartOSBatchTask ParseFrom(byte[] data)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x0600014D RID: 333 RVA: 0x00004357 File Offset: 0x00002557
		public static StartOSBatchTask ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x0600014E RID: 334 RVA: 0x0000436A File Offset: 0x0000256A
		public static StartOSBatchTask ParseFrom(Stream input)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x0600014F RID: 335 RVA: 0x0000437C File Offset: 0x0000257C
		public static StartOSBatchTask ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000150 RID: 336 RVA: 0x0000438F File Offset: 0x0000258F
		public static StartOSBatchTask ParseDelimitedFrom(Stream input)
		{
			return StartOSBatchTask.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x06000151 RID: 337 RVA: 0x000043A1 File Offset: 0x000025A1
		public static StartOSBatchTask ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StartOSBatchTask.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000152 RID: 338 RVA: 0x000043B4 File Offset: 0x000025B4
		public static StartOSBatchTask ParseFrom(ICodedInputStream input)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x06000153 RID: 339 RVA: 0x000043C6 File Offset: 0x000025C6
		public static StartOSBatchTask ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return StartOSBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x06000154 RID: 340 RVA: 0x00002579 File Offset: 0x00000779
		private StartOSBatchTask MakeReadOnly()
		{
			return this;
		}

		// Token: 0x06000155 RID: 341 RVA: 0x000043D9 File Offset: 0x000025D9
		public static StartOSBatchTask.Builder CreateBuilder()
		{
			return new StartOSBatchTask.Builder();
		}

		// Token: 0x06000156 RID: 342 RVA: 0x000043E0 File Offset: 0x000025E0
		public override StartOSBatchTask.Builder ToBuilder()
		{
			return StartOSBatchTask.CreateBuilder(this);
		}

		// Token: 0x06000157 RID: 343 RVA: 0x000043D9 File Offset: 0x000025D9
		public override StartOSBatchTask.Builder CreateBuilderForType()
		{
			return new StartOSBatchTask.Builder();
		}

		// Token: 0x06000158 RID: 344 RVA: 0x000043E8 File Offset: 0x000025E8
		public static StartOSBatchTask.Builder CreateBuilder(StartOSBatchTask prototype)
		{
			return new StartOSBatchTask.Builder(prototype);
		}

		// Token: 0x06000159 RID: 345 RVA: 0x000043F0 File Offset: 0x000025F0
		static StartOSBatchTask()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x040000DA RID: 218
		private static readonly StartOSBatchTask defaultInstance = new StartOSBatchTask().MakeReadOnly();

		// Token: 0x040000DB RID: 219
		private static readonly string[] _startOSBatchTaskFieldNames = new string[]
		{
			"expire",
			"message"
		};

		// Token: 0x040000DC RID: 220
		private static readonly uint[] _startOSBatchTaskFieldTags = new uint[]
		{
			16u,
			10u
		};

		// Token: 0x040000DD RID: 221
		public const int MessageFieldNumber = 1;

		// Token: 0x040000DE RID: 222
		private bool hasMessage;

		// Token: 0x040000DF RID: 223
		private OSMessage message_;

		// Token: 0x040000E0 RID: 224
		public const int ExpireFieldNumber = 2;

		// Token: 0x040000E1 RID: 225
		private bool hasExpire;

		// Token: 0x040000E2 RID: 226
		private long expire_ = 72L;

		// Token: 0x040000E3 RID: 227
		private int memoizedSerializedSize = -1;

		// Token: 0x0200005B RID: 91
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<StartOSBatchTask, StartOSBatchTask.Builder>
		{
			// Token: 0x170002DA RID: 730
			// (get) Token: 0x060006F0 RID: 1776 RVA: 0x00002579 File Offset: 0x00000779
			protected override StartOSBatchTask.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x060006F1 RID: 1777 RVA: 0x00010929 File Offset: 0x0000EB29
			public Builder()
			{
				this.result = StartOSBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060006F2 RID: 1778 RVA: 0x00010943 File Offset: 0x0000EB43
			internal Builder(StartOSBatchTask cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x060006F3 RID: 1779 RVA: 0x0001095C File Offset: 0x0000EB5C
			private StartOSBatchTask PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					StartOSBatchTask other = this.result;
					this.result = new StartOSBatchTask();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x170002DB RID: 731
			// (get) Token: 0x060006F4 RID: 1780 RVA: 0x00010998 File Offset: 0x0000EB98
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x170002DC RID: 732
			// (get) Token: 0x060006F5 RID: 1781 RVA: 0x000109A5 File Offset: 0x0000EBA5
			protected override StartOSBatchTask MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x060006F6 RID: 1782 RVA: 0x000109AD File Offset: 0x0000EBAD
			public override StartOSBatchTask.Builder Clear()
			{
				this.result = StartOSBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x060006F7 RID: 1783 RVA: 0x000109C2 File Offset: 0x0000EBC2
			public override StartOSBatchTask.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new StartOSBatchTask.Builder(this.result);
				}
				return new StartOSBatchTask.Builder().MergeFrom(this.result);
			}

			// Token: 0x170002DD RID: 733
			// (get) Token: 0x060006F8 RID: 1784 RVA: 0x000109E8 File Offset: 0x0000EBE8
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return StartOSBatchTask.Descriptor;
				}
			}

			// Token: 0x170002DE RID: 734
			// (get) Token: 0x060006F9 RID: 1785 RVA: 0x000041E2 File Offset: 0x000023E2
			public override StartOSBatchTask DefaultInstanceForType
			{
				get
				{
					return StartOSBatchTask.DefaultInstance;
				}
			}

			// Token: 0x060006FA RID: 1786 RVA: 0x000109EF File Offset: 0x0000EBEF
			public override StartOSBatchTask BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x060006FB RID: 1787 RVA: 0x00010A12 File Offset: 0x0000EC12
			public override StartOSBatchTask.Builder MergeFrom(IMessage other)
			{
				if (other is StartOSBatchTask)
				{
					return this.MergeFrom((StartOSBatchTask)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x060006FC RID: 1788 RVA: 0x00010A34 File Offset: 0x0000EC34
			public override StartOSBatchTask.Builder MergeFrom(StartOSBatchTask other)
			{
				if (other == StartOSBatchTask.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasMessage)
				{
					this.MergeMessage(other.Message);
				}
				if (other.HasExpire)
				{
					this.Expire = other.Expire;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x060006FD RID: 1789 RVA: 0x00010A89 File Offset: 0x0000EC89
			public override StartOSBatchTask.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x060006FE RID: 1790 RVA: 0x00010A98 File Offset: 0x0000EC98
			public override StartOSBatchTask.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(StartOSBatchTask._startOSBatchTaskFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = StartOSBatchTask._startOSBatchTaskFieldTags[num2];
					}
					if (num == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num != 10u)
					{
						if (num != 16u)
						{
							if (WireFormat.IsEndGroupTag(num))
							{
								if (builder != null)
								{
									this.UnknownFields = builder.Build();
								}
								return this;
							}
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
						}
						else
						{
							this.result.hasExpire = input.ReadInt64(ref this.result.expire_);
						}
					}
					else
					{
						OSMessage.Builder builder2 = OSMessage.CreateBuilder();
						if (this.result.hasMessage)
						{
							builder2.MergeFrom(this.Message);
						}
						input.ReadMessage(builder2, extensionRegistry);
						this.Message = builder2.BuildPartial();
					}
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x170002DF RID: 735
			// (get) Token: 0x060006FF RID: 1791 RVA: 0x00010BB8 File Offset: 0x0000EDB8
			public bool HasMessage
			{
				get
				{
					return this.result.hasMessage;
				}
			}

			// Token: 0x170002E0 RID: 736
			// (get) Token: 0x06000700 RID: 1792 RVA: 0x00010BC5 File Offset: 0x0000EDC5
			// (set) Token: 0x06000701 RID: 1793 RVA: 0x00010BD2 File Offset: 0x0000EDD2
			public OSMessage Message
			{
				get
				{
					return this.result.Message;
				}
				set
				{
					this.SetMessage(value);
				}
			}

			// Token: 0x06000702 RID: 1794 RVA: 0x00010BDC File Offset: 0x0000EDDC
			public StartOSBatchTask.Builder SetMessage(OSMessage value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMessage = true;
				this.result.message_ = value;
				return this;
			}

			// Token: 0x06000703 RID: 1795 RVA: 0x00010C09 File Offset: 0x0000EE09
			public StartOSBatchTask.Builder SetMessage(OSMessage.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasMessage = true;
				this.result.message_ = builderForValue.Build();
				return this;
			}

			// Token: 0x06000704 RID: 1796 RVA: 0x00010C3C File Offset: 0x0000EE3C
			public StartOSBatchTask.Builder MergeMessage(OSMessage value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasMessage && this.result.message_ != OSMessage.DefaultInstance)
				{
					this.result.message_ = OSMessage.CreateBuilder(this.result.message_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.message_ = value;
				}
				this.result.hasMessage = true;
				return this;
			}

			// Token: 0x06000705 RID: 1797 RVA: 0x00010CBB File Offset: 0x0000EEBB
			public StartOSBatchTask.Builder ClearMessage()
			{
				this.PrepareBuilder();
				this.result.hasMessage = false;
				this.result.message_ = null;
				return this;
			}

			// Token: 0x170002E1 RID: 737
			// (get) Token: 0x06000706 RID: 1798 RVA: 0x00010CDD File Offset: 0x0000EEDD
			public bool HasExpire
			{
				get
				{
					return this.result.hasExpire;
				}
			}

			// Token: 0x170002E2 RID: 738
			// (get) Token: 0x06000707 RID: 1799 RVA: 0x00010CEA File Offset: 0x0000EEEA
			// (set) Token: 0x06000708 RID: 1800 RVA: 0x00010CF7 File Offset: 0x0000EEF7
			public long Expire
			{
				get
				{
					return this.result.Expire;
				}
				set
				{
					this.SetExpire(value);
				}
			}

			// Token: 0x06000709 RID: 1801 RVA: 0x00010D01 File Offset: 0x0000EF01
			public StartOSBatchTask.Builder SetExpire(long value)
			{
				this.PrepareBuilder();
				this.result.hasExpire = true;
				this.result.expire_ = value;
				return this;
			}

			// Token: 0x0600070A RID: 1802 RVA: 0x00010D23 File Offset: 0x0000EF23
			public StartOSBatchTask.Builder ClearExpire()
			{
				this.PrepareBuilder();
				this.result.hasExpire = false;
				this.result.expire_ = 72L;
				return this;
			}

			// Token: 0x0400034D RID: 845
			private bool resultIsReadOnly;

			// Token: 0x0400034E RID: 846
			private StartOSBatchTask result;
		}
	}
}
